﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace AiMoRhino.Preview
{
    partial class PreviewForm : Form
    {
        public PreviewForm()
        {
            InitializeComponent();
            TreeViewBox.Nodes.Clear();

        }
        public void AddNode(string name)
        {
            TreeViewBox.Nodes.Add(new TreeNode(name));
        }

        public void AddNode(string name, IEnumerable<string> names)
        {
            TreeViewBox.Nodes.Add(new TreeNode(name, names.Select(x => new TreeNode(x)).ToArray()));
        }
        private void PreviewSwitch_Click(object sender, EventArgs e)
        {

        }

        private void BakeButton_Click(object sender, EventArgs e)
        {

        }
    }
}
